﻿package com.findMoneyGame.pages.game {
	
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	public class LevelCompleteConfirmDialog extends MovieClip {

		public static const CONFIRMED : String = "confirmed";
		public static const HOME : String = "home";
		
		public function LevelCompleteConfirmDialog() {
			continueButton.addEventListener(
				MouseEvent.CLICK, 
				function (e : Event) { dispatchEvent(new Event(CONFIRMED)); }
			);
			homeButton.addEventListener(
				MouseEvent.CLICK, 
				function (e : Event) { dispatchEvent(new Event(HOME)); }
			);
		}
	}
	
}
